//
//  SelfInfoEditTopCell.m
//  iphone-graph
//
//  Created by yuzhuo on 2016/12/27.
//  Copyright © 2016年 yzapp. All rights reserved.
//

#import "SelfInfoEditTopCell.h"
#import "Constant.h"

@implementation SelfInfoEditTopCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self  = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self){
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;//
        [self initSubViews];
    }
    return self;
}

-(void)initSubViews{

    _avatar = [[UIImageView alloc]initWithFrame:CGRectMake(20, 25, 60, 60)];
    [_avatar.layer setCornerRadius:30];
    [_avatar setContentMode:UIViewContentModeScaleAspectFill];
    _avatar.clipsToBounds = YES;

    [self.contentView addSubview:_avatar];
    
}

#pragma mark -SetData

-(void)setData:(UIImage*)data
{
    _data = data;
    self.avatar.image = data;
    
}

@end
